/*
 * 检测输入数据中奇数和偶数的个数（4分）
 */

#include <stdio.h>

int main() {
	setbuf(stdout, NULL);

	int input, odd_count = 0, even_count = 0;

	printf("Please enter the number:\n");
	scanf("%d", &input);

	while (input != -1) {
		if (input % 2 == 0) {
			printf("%d:even\n", input);
			++even_count;
		} else {
			printf("%d:odd\n", input);
			++odd_count;
		}

		scanf("%d", &input);
	}

	if (input == -1 && odd_count == 0 && even_count == 0) {
		printf("over!\n");
		printf("The total number of odd is %d\n", odd_count);
		printf("The total number of even is %d\n", even_count);
	} else {
		printf("The total number of odd is %d\n", odd_count);
		printf("The total number of even is %d\n", even_count);
	}

	return 0;
}